// ==UserScript==
// @name           Float Reply Area for new Douban
// @namespace      http://stellit.blogspot.com
// @description    Float Reply Area for new Douban
// @include        http://www.douban.com/group/topic/*
// @include        http://www.douban.com/review/*
// @include        http://www.douban.com/forum/*
// @include        http://www.douban.com/note/*
// @include        http://www.douban.com/event/discussion/*
// @include        http://www.douban.com/subject/discussion/*
// @include        http://www.douban.com/photos/photo/*
// @exclude        http://www.douban.com/group/topic/*/edit
// @exclude        http://www.douban.com/forum/
// @author         Stellit
// @version        0.1.1
// ==/UserScript==

// Add jQuery

    var DOM_JQ = document.createElement('script');
    DOM_JQ.src = 'http://code.jquery.com/jquery-latest.pack.js';
    DOM_JQ.type = 'text/javascript';
    document.getElementsByTagName('head')[0].appendChild(DOM_JQ);

// Check if jQuery's loaded
    function GM_wait() {
        if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
    else {  letsJQuery(); }
    }
    GM_wait();

// All your GM code must be inside this function
    function letsJQuery() {
		var $j;
		$j = unsafeWindow.jQuery.noConflict();
		commentDiv = $j("div.txd");
		commentDiv.css({ 
			position:"fixed", 
			bottom: "8%", 
			right:"0%", 
			width: "37%"});
		textarea = $j("textarea#last");
		textarea.attr("rows","20");
		textarea.attr("cols","20");
		textarea.css({
			border:"1px gray solid",
			opacity:"0.75",
			background: "transparent"
		});
    }
// var doubanUserJs = function(){
// 	var xpath = function(query) {
// 	    return document.evaluate(query, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
// 	};
// 	return findByXpathQuery:xpath;
// };
//